<div class="addpost"></div>
<div class="postsform">
<center>
<?php 	

		echo $this->Form->create('Post');?>
	<?php
		$photourl=$this->Facebook->get_photo_from_id($photoid);
		echo $this->Form->hidden('Post.fb_user_id', array('value'=>$this->Facebook->get_id()));
		echo $this->Form->input('Post.title');
		echo $this->Form->input('Post.address');
		echo $this->Form->input('Post.description');
		echo $this->Form->input('Image.photo_id',array('type'=>'hidden','value'=>$photoid));
		echo $this->Form->input('Image.photo_url',array('type'=>'hidden','value'=>$photourl));
		echo "Facebook Photo<br>";
		echo $html->Image($this->Facebook->get_thumb_from_id($photoid));
		//echo $this->Form->input('Image.photo_url',array('type'=>'hidden','value'=>'http://photos-g.ak.fbcdn.net/hphotos-ak-snc3/hs530.snc3/30129_738873983515_6404892_41855276_7660318_s.jpg'));
		
	?>
<?php echo $this->Form->end(__('Submit', true));?>
<br>
</center>
</div>
<div class="postsformbottom"></div>
